package com.lmm.yydshtester.command;

import com.lmm.yydshtester.distributed.TaskManger;
import lombok.Data;
import org.springframework.stereotype.Service;

import java.util.Scanner;
/**
 * 查看结果
 * */
@Data
@Service("CaseResultViewCommand")
public class CaseResultViewCommand implements BaseCommand
{
    public static final String KEY = "5";

    @Override
    public void exec(Scanner scanner)
    {
        System.out.println("view run test result:");

        TaskManger.getInstance().viewRunResult();

    }

    @Override
    public String getKey()
    {
        return KEY;
    }

    @Override
    public String getTip()
    {
        return "view run test result";
    }

}
